package com.cloud.api.domain.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Getter
@Setter
@Accessors(chain = true)
public class RoleDeptRequest implements Serializable {

    @Schema(description = "角色Id")
    @NotEmpty(message = "roleId不能为空")
    private String roleId;

    @Schema(description = "权限范围类型")
    @NotNull(message = "权限范围类型不能为空")
    private Integer dataScope;

    @Schema(description = "部门id")
    private String deptId;
}
